package com.kai.steering.data.service.entity.vo;

import cn.hutool.core.bean.BeanUtil;
import com.kai.steering.data.service.entity.domainObject.NoteDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <pre>
 * 笔记 VO对象
 * </pre>
 *
 * @author kai
 * @date 2022-02-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "NoteVO对象", description = "笔记业务视图")
public class NoteVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "笔记id")
    private String noteId;
    @ApiModelProperty(value = "用户_题目id")
    private String userQuestionId;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "更新时间")
    private Date updateDatetime;

    public NoteVO(NoteDO noteDO) {
        BeanUtil.copyProperties(noteDO,this);
    }
}